import random

# num = []
# val = []
# for i in range(20):
#     v = random.randint(111, 999)
#     num.append(v)
#     s = 'asdfghjklqwertyuiopzxcvbnm'
#     nums = random.sample(s, 1)
#     v1 = random.randint(65, 90)
#     data = chr(v1)
#     new_data = '京' + data + str(v) + str(nums[0])
#     val.append(new_data)
# print(val)
# for j in range(3):
#     choice = input('请选择你的号码:')
#     if choice.lower() == 'n':
#         print('重新选择')
#         continue
#     temp = val[int(choice)]
#     print('恭喜您成为尊贵的' + temp + '车主，愿您事业蒸蒸日上！')
#     break
for i in range(20):
    v = random.randint(111, 999)
    s = 'qwertyuiopasdfghjklzxcvbnm'
    temp = random.sample(s, 1)
    temp.append(str(v))
    a = ''.join(temp)
    brand = chr(random.randint(65, 90))
    goods = '京' + brand + a
    print(goods)
for j in range(3):
    choice = input('请选择你的号码:')
    if choice.lower() == 'n':
        print('重新选择')
        continue
    print('恭喜您成为尊贵的' + goods + '车主，愿您事业蒸蒸日上！')
    break
